package com.vhall.component.entity.vote.vo.console;


import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author longzhen.gong
 * @date 2021/7/7 14:50
 */
@NoArgsConstructor
@Data
public class VoteExportVO implements Serializable {

    private static final long serialVersionUID = -7053826661081686793L;
    @NotBlank(message = "room_id参数异常")
    @ParamName("room_id")
    private String roomId;

    @ParamName("begin_time")
    private String beginTime;

    @ParamName("end_time")
    private String endTime;

    @NotBlank(message = "export参数异常")
    @Pattern(regexp = "vote", message = "export参数异常")
    @ParamName("export")
    private String export;

    @NotNull(message = "id参数异常")
    @ParamName("id")
    private Integer id;

    @ParamName("from")
    private String from;

    @ParamName("en")
    private String en;
}
